<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: fonts/bdffontutil.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_f315b379889fde23168cba3fe99c18a3.html">fonts</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">bdffontutil.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>BDF to C code converter Copyright &copy; 2015 Mike Gore Displays fonts generated by bdffont2c BDF to C code converter BDF = Glyph Bitmap Distribution Format The code handles fixed, proportional and bounding box format fonts.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &lt;unistd.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
<code>#include &lt;limits.h&gt;</code><br />
<code>#include &lt;errno.h&gt;</code><br />
<code>#include &lt;stdint.h&gt;</code><br />
<code>#include &lt;ctype.h&gt;</code><br />
<code>#include &quot;<a class="el" href="fonts_2font_8h_source.html">font.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="bdffontutil_8h_source.html">bdffontutil.h</a>&quot;</code><br />
</div>
<p><a href="bdffontutil_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a772bc2ec9bca317fb84673f5e9fab1d3"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a772bc2ec9bca317fb84673f5e9fab1d3">db_calloc</a> (<a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a> size)</td></tr>
<tr class="memdesc:a772bc2ec9bca317fb84673f5e9fab1d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">calloc memory or error exit  <a href="#a772bc2ec9bca317fb84673f5e9fab1d3">More...</a><br /></td></tr>
<tr class="separator:a772bc2ec9bca317fb84673f5e9fab1d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6042d0098b72b215bcef2d21e803e51d"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a6042d0098b72b215bcef2d21e803e51d">db_free</a> (void *p)</td></tr>
<tr class="memdesc:a6042d0098b72b215bcef2d21e803e51d"><td class="mdescLeft">&#160;</td><td class="mdescRight">free memory  <a href="#a6042d0098b72b215bcef2d21e803e51d">More...</a><br /></td></tr>
<tr class="separator:a6042d0098b72b215bcef2d21e803e51d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a9b8fa6a56f0303cd8c23fdf290f401"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a8a9b8fa6a56f0303cd8c23fdf290f401">stralloc</a> (char *str)</td></tr>
<tr class="memdesc:a8a9b8fa6a56f0303cd8c23fdf290f401"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocate memory and copy string into it.  <a href="#a8a9b8fa6a56f0303cd8c23fdf290f401">More...</a><br /></td></tr>
<tr class="separator:a8a9b8fa6a56f0303cd8c23fdf290f401"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a907e53e4a090147ec953b18f0e1b7915"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a907e53e4a090147ec953b18f0e1b7915">remove_quotes</a> (char *str)</td></tr>
<tr class="memdesc:a907e53e4a090147ec953b18f0e1b7915"><td class="mdescLeft">&#160;</td><td class="mdescRight">STrip quotes from string and leading spaces.  <a href="#a907e53e4a090147ec953b18f0e1b7915">More...</a><br /></td></tr>
<tr class="separator:a907e53e4a090147ec953b18f0e1b7915"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a466ba4f5e35f1e5ff2791ae4d68d2c7b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a466ba4f5e35f1e5ff2791ae4d68d2c7b">line_wrap</a> (char *str, int max)</td></tr>
<tr class="memdesc:a466ba4f5e35f1e5ff2791ae4d68d2c7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Line wrap function ASSUMES we write back into the string (replace space or tab with newlines.  <a href="#a466ba4f5e35f1e5ff2791ae4d68d2c7b">More...</a><br /></td></tr>
<tr class="separator:a466ba4f5e35f1e5ff2791ae4d68d2c7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ad12cb70b50ebf45467f22d22707acc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a4ad12cb70b50ebf45467f22d22707acc">trim_tail</a> (char *str)</td></tr>
<tr class="memdesc:a4ad12cb70b50ebf45467f22d22707acc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove characters less then or equal to space from end of string.  <a href="#a4ad12cb70b50ebf45467f22d22707acc">More...</a><br /></td></tr>
<tr class="separator:a4ad12cb70b50ebf45467f22d22707acc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77f36d5136e3d749221b33e3f23c0258"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a77f36d5136e3d749221b33e3f23c0258">skip_spaces</a> (char *str)</td></tr>
<tr class="memdesc:a77f36d5136e3d749221b33e3f23c0258"><td class="mdescLeft">&#160;</td><td class="mdescRight">Skip spaces at start of string.  <a href="#a77f36d5136e3d749221b33e3f23c0258">More...</a><br /></td></tr>
<tr class="separator:a77f36d5136e3d749221b33e3f23c0258"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e35df70a4e8a3c2b60cc467731636c8"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a1e35df70a4e8a3c2b60cc467731636c8">get_token</a> (char *str, char *<a class="el" href="stringsup_8h.html#ae9142769a957bcb8c0fad1934576f576">token</a>, int max)</td></tr>
<tr class="memdesc:a1e35df70a4e8a3c2b60cc467731636c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">get first non space containing string Skip spaces at start of string  <a href="#a1e35df70a4e8a3c2b60cc467731636c8">More...</a><br /></td></tr>
<tr class="separator:a1e35df70a4e8a3c2b60cc467731636c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a236d65c81ae4bb3d079e9f2dd971cf04"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a236d65c81ae4bb3d079e9f2dd971cf04">ishex</a> (int c)</td></tr>
<tr class="memdesc:a236d65c81ae4bb3d079e9f2dd971cf04"><td class="mdescLeft">&#160;</td><td class="mdescRight">is a character hex ASCII character  <a href="#a236d65c81ae4bb3d079e9f2dd971cf04">More...</a><br /></td></tr>
<tr class="separator:a236d65c81ae4bb3d079e9f2dd971cf04"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8842f574a823375421ac5eabc13bf8c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#aa8842f574a823375421ac5eabc13bf8c">ishexstr</a> (char *str)</td></tr>
<tr class="memdesc:aa8842f574a823375421ac5eabc13bf8c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Does a string only contain hex characters ?  <a href="#aa8842f574a823375421ac5eabc13bf8c">More...</a><br /></td></tr>
<tr class="separator:aa8842f574a823375421ac5eabc13bf8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8451fa4387dfafd4583f6548533d37b"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#aa8451fa4387dfafd4583f6548533d37b">match_token</a> (char *str, char *pat)</td></tr>
<tr class="memdesc:aa8451fa4387dfafd4583f6548533d37b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Match next token against pattern.  <a href="#aa8451fa4387dfafd4583f6548533d37b">More...</a><br /></td></tr>
<tr class="separator:aa8451fa4387dfafd4583f6548533d37b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f0f4f7839e40a64f7cfd43752d8a602"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a3f0f4f7839e40a64f7cfd43752d8a602">FontHeaderInfo</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *out, <a class="el" href="struct__font.html">_font</a> *<a class="el" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>, char *prog, char *target)</td></tr>
<tr class="memdesc:a3f0f4f7839e40a64f7cfd43752d8a602"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write Font Header Information Copyright, font family, etc.  <a href="#a3f0f4f7839e40a64f7cfd43752d8a602">More...</a><br /></td></tr>
<tr class="separator:a3f0f4f7839e40a64f7cfd43752d8a602"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9461259743229256336c4260de7e0e0e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a9461259743229256336c4260de7e0e0e">Convert_Font2c</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *out, <a class="el" href="struct__font.html">_font</a> *<a class="el" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>)</td></tr>
<tr class="memdesc:a9461259743229256336c4260de7e0e0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert font to C structure Writes header information, font specification, font bitmap.  <a href="#a9461259743229256336c4260de7e0e0e">More...</a><br /></td></tr>
<tr class="separator:a9461259743229256336c4260de7e0e0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a052882497beff245c47eafa6b988f2c0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a052882497beff245c47eafa6b988f2c0">emit_number</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *out, char *name, int num)</td></tr>
<tr class="memdesc:a052882497beff245c47eafa6b988f2c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write Font Structure element as a number.  <a href="#a052882497beff245c47eafa6b988f2c0">More...</a><br /></td></tr>
<tr class="separator:a052882497beff245c47eafa6b988f2c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a083894d36a7a6960e30d21d88a0da874"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a083894d36a7a6960e30d21d88a0da874">emit_data</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *out, char *name, unsigned char *data, int size)</td></tr>
<tr class="memdesc:a083894d36a7a6960e30d21d88a0da874"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write Font Structure element as a uint8_t value.  <a href="#a083894d36a7a6960e30d21d88a0da874">More...</a><br /></td></tr>
<tr class="separator:a083894d36a7a6960e30d21d88a0da874"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adcb08a26399fd69fe0d607897367e4af"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#adcb08a26399fd69fe0d607897367e4af">emit_str</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *out, char *name, unsigned char *data)</td></tr>
<tr class="memdesc:adcb08a26399fd69fe0d607897367e4af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write Font Structure string.  <a href="#adcb08a26399fd69fe0d607897367e4af">More...</a><br /></td></tr>
<tr class="separator:adcb08a26399fd69fe0d607897367e4af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57e8372dbdb58858e67dfaad363b0ab0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a57e8372dbdb58858e67dfaad363b0ab0">InitNames</a> ()</td></tr>
<tr class="memdesc:a57e8372dbdb58858e67dfaad363b0ab0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset File and Structure names.  <a href="#a57e8372dbdb58858e67dfaad363b0ab0">More...</a><br /></td></tr>
<tr class="separator:a57e8372dbdb58858e67dfaad363b0ab0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75b1f39c4e8755dca07fd291e52aaedb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a75b1f39c4e8755dca07fd291e52aaedb">InitFonts</a> (<a class="el" href="struct__font.html">_font</a> *<a class="el" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>)</td></tr>
<tr class="memdesc:a75b1f39c4e8755dca07fd291e52aaedb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize all font structures to reset states.  <a href="#a75b1f39c4e8755dca07fd291e52aaedb">More...</a><br /></td></tr>
<tr class="separator:a75b1f39c4e8755dca07fd291e52aaedb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4afb5289fcab36022951a5d16ea7932f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a4afb5289fcab36022951a5d16ea7932f">FreeFont</a> (<a class="el" href="struct__font.html">_font</a> *<a class="el" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>)</td></tr>
<tr class="memdesc:a4afb5289fcab36022951a5d16ea7932f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Free font data.  <a href="#a4afb5289fcab36022951a5d16ea7932f">More...</a><br /></td></tr>
<tr class="separator:a4afb5289fcab36022951a5d16ea7932f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6293de28b724a18693465ec67868d958"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a6293de28b724a18693465ec67868d958">AddFontName</a> (<a class="el" href="struct__font.html">_font</a> *<a class="el" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>)</td></tr>
<tr class="memdesc:a6293de28b724a18693465ec67868d958"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generate the font name for this font This is based on the BDF FAMILY_NAME,WEIGHT_NAME,SLANT keywords.  <a href="#a6293de28b724a18693465ec67868d958">More...</a><br /></td></tr>
<tr class="separator:a6293de28b724a18693465ec67868d958"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa01d93b9cf1d60cc4ce0adb717384f96"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#aa01d93b9cf1d60cc4ce0adb717384f96">FindFontName</a> (char *str)</td></tr>
<tr class="memdesc:aa01d93b9cf1d60cc4ce0adb717384f96"><td class="mdescLeft">&#160;</td><td class="mdescRight">Search for a font name.  <a href="#aa01d93b9cf1d60cc4ce0adb717384f96">More...</a><br /></td></tr>
<tr class="separator:aa01d93b9cf1d60cc4ce0adb717384f96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac01ebab75271c42afb96bb8da7db06c2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#ac01ebab75271c42afb96bb8da7db06c2">WriteFontBits</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *out, <a class="el" href="struct__font.html">_font</a> *<a class="el" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>)</td></tr>
<tr class="memdesc:ac01ebab75271c42afb96bb8da7db06c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write Font bitmap data for all characters in a font.  <a href="#ac01ebab75271c42afb96bb8da7db06c2">More...</a><br /></td></tr>
<tr class="separator:ac01ebab75271c42afb96bb8da7db06c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82e40b5e56cab7daedbe210542aa1d99"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a82e40b5e56cab7daedbe210542aa1d99">WriteFontInfo</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *out, <a class="el" href="struct__font.html">_font</a> *<a class="el" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>)</td></tr>
<tr class="memdesc:a82e40b5e56cab7daedbe210542aa1d99"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write C Header: Font Information Summary.  <a href="#a82e40b5e56cab7daedbe210542aa1d99">More...</a><br /></td></tr>
<tr class="separator:a82e40b5e56cab7daedbe210542aa1d99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e780815dcb0ad1738a3710d10751824"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a6e780815dcb0ad1738a3710d10751824">WriteFontTable</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *out, <a class="el" href="struct__font.html">_font</a> *<a class="el" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>)</td></tr>
<tr class="memdesc:a6e780815dcb0ad1738a3710d10751824"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write Specification Font Table.  <a href="#a6e780815dcb0ad1738a3710d10751824">More...</a><br /></td></tr>
<tr class="separator:a6e780815dcb0ad1738a3710d10751824"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c2cf276db0c747638909191d76925da"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a7c2cf276db0c747638909191d76925da">WriteCharacterBits</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *out, <a class="el" href="struct__font.html">_font</a> *<a class="el" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>, int num)</td></tr>
<tr class="memdesc:a7c2cf276db0c747638909191d76925da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write Font bitmap data for one charactre.  <a href="#a7c2cf276db0c747638909191d76925da">More...</a><br /></td></tr>
<tr class="separator:a7c2cf276db0c747638909191d76925da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49c59fe21a56b90ad6f8bcc5549e3dce"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a49c59fe21a56b90ad6f8bcc5549e3dce">ReadBdf</a> (char *name, <a class="el" href="struct__font.html">_font</a> *<a class="el" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>, int lower, int upper)</td></tr>
<tr class="memdesc:a49c59fe21a56b90ad6f8bcc5549e3dce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read and parse a BDF file for specified font and character set range Fills fonts structures.  <a href="#a49c59fe21a56b90ad6f8bcc5549e3dce">More...</a><br /></td></tr>
<tr class="separator:a49c59fe21a56b90ad6f8bcc5549e3dce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b1c337030d89f81b06857192e4e0179"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a1b1c337030d89f81b06857192e4e0179">AdjustFontTable</a> (<a class="el" href="struct__font.html">_font</a> *<a class="el" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>)</td></tr>
<tr class="memdesc:a1b1c337030d89f81b06857192e4e0179"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adjust Font X Y offset, renormalize X Y to 0 0 Also readjust font bounding box.  <a href="#a1b1c337030d89f81b06857192e4e0179">More...</a><br /></td></tr>
<tr class="separator:a1b1c337030d89f81b06857192e4e0179"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2e86eac4bb6e173fbbfae929302e851"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#ac2e86eac4bb6e173fbbfae929302e851">FontAdjustFull</a> (<a class="el" href="struct__font.html">_font</a> *<a class="el" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>)</td></tr>
<tr class="memdesc:ac2e86eac4bb6e173fbbfae929302e851"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adjust font to full size with no offset.  <a href="#ac2e86eac4bb6e173fbbfae929302e851">More...</a><br /></td></tr>
<tr class="separator:ac2e86eac4bb6e173fbbfae929302e851"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8e10a9220f9a51589124690c47d099b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#ac8e10a9220f9a51589124690c47d099b">FontAdjustSmall</a> (<a class="el" href="struct__font.html">_font</a> *<a class="el" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>)</td></tr>
<tr class="memdesc:ac8e10a9220f9a51589124690c47d099b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ajust font to use smallest font bounding box for each font Can be used to converting large fixed fonts to more compact form Creates font-&gt;specs if missing. Updates font-&gt;specs with new font size and offsets Can convert fixed to proportional or optimize bounding box to smallest size for space savings.  <a href="#ac8e10a9220f9a51589124690c47d099b">More...</a><br /></td></tr>
<tr class="separator:ac8e10a9220f9a51589124690c47d099b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5452adc13af52bed8d199861362037e0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a5452adc13af52bed8d199861362037e0">ComputeGapSize</a> (<a class="el" href="struct__font.html">_font</a> *<a class="el" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>)</td></tr>
<tr class="memdesc:a5452adc13af52bed8d199861362037e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find a good gap size (inter-character spacing) for any font Currently we searching for the smallest width feature in a font set and use it as the gap Set update font-&gt;gap FIXME Alternatively we may wish to consider scanning characters only in their middle (virtically) center.  <a href="#a5452adc13af52bed8d199861362037e0">More...</a><br /></td></tr>
<tr class="separator:a5452adc13af52bed8d199861362037e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acaa9ad09e11f90b8cf7a9e37963e4690"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#acaa9ad09e11f90b8cf7a9e37963e4690">bsetv</a> (unsigned char *ptr, int addr)</td></tr>
<tr class="memdesc:acaa9ad09e11f90b8cf7a9e37963e4690"><td class="mdescLeft">&#160;</td><td class="mdescRight">bit set in byte array  <a href="#acaa9ad09e11f90b8cf7a9e37963e4690">More...</a><br /></td></tr>
<tr class="separator:acaa9ad09e11f90b8cf7a9e37963e4690"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a972599efcbe9797a7ca0b80e9c3c3707"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a972599efcbe9797a7ca0b80e9c3c3707">bclrv</a> (unsigned char *ptr, int addr)</td></tr>
<tr class="memdesc:a972599efcbe9797a7ca0b80e9c3c3707"><td class="mdescLeft">&#160;</td><td class="mdescRight">bit clear in byte array  <a href="#a972599efcbe9797a7ca0b80e9c3c3707">More...</a><br /></td></tr>
<tr class="separator:a972599efcbe9797a7ca0b80e9c3c3707"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa30626c7589748b8cea5fee93e17c4cf"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#aa30626c7589748b8cea5fee93e17c4cf">btestv</a> (unsigned char *ptr, int addr)</td></tr>
<tr class="memdesc:aa30626c7589748b8cea5fee93e17c4cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test bit in byte array.  <a href="#aa30626c7589748b8cea5fee93e17c4cf">More...</a><br /></td></tr>
<tr class="separator:aa30626c7589748b8cea5fee93e17c4cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5ed287545d9d0d4361d2bd1c6ecc69d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#aa5ed287545d9d0d4361d2bd1c6ecc69d">bittestxy</a> (unsigned char *ptr, int <a class="el" href="ili9341_8c.html#a12ad102c2d1e7e119fdc040b0c922c7e">x</a>, int <a class="el" href="ili9341_8c.html#afe490938209e0b6b15224c05a01f0b40">y</a>, int w, int h)</td></tr>
<tr class="memdesc:aa5ed287545d9d0d4361d2bd1c6ecc69d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test bit in width * height size bit array usng x and y offsets.  <a href="#aa5ed287545d9d0d4361d2bd1c6ecc69d">More...</a><br /></td></tr>
<tr class="separator:aa5ed287545d9d0d4361d2bd1c6ecc69d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5c6287f7660b7752ffcb2e788e66f49"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#ac5c6287f7660b7752ffcb2e788e66f49">bitsetxy</a> (unsigned char *ptr, int <a class="el" href="ili9341_8c.html#a12ad102c2d1e7e119fdc040b0c922c7e">x</a>, int <a class="el" href="ili9341_8c.html#afe490938209e0b6b15224c05a01f0b40">y</a>, int w, int h)</td></tr>
<tr class="memdesc:ac5c6287f7660b7752ffcb2e788e66f49"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set bit in width * height size bit array usng x and y offsets.  <a href="#ac5c6287f7660b7752ffcb2e788e66f49">More...</a><br /></td></tr>
<tr class="separator:ac5c6287f7660b7752ffcb2e788e66f49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57a2a0c60cfe07cf03b14622e93ea4f4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a57a2a0c60cfe07cf03b14622e93ea4f4">bitclrxy</a> (unsigned char *ptr, int <a class="el" href="ili9341_8c.html#a12ad102c2d1e7e119fdc040b0c922c7e">x</a>, int <a class="el" href="ili9341_8c.html#afe490938209e0b6b15224c05a01f0b40">y</a>, int width, int height)</td></tr>
<tr class="memdesc:a57a2a0c60cfe07cf03b14622e93ea4f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear bit in width * height size bit array usng x and y offsets.  <a href="#a57a2a0c60cfe07cf03b14622e93ea4f4">More...</a><br /></td></tr>
<tr class="separator:a57a2a0c60cfe07cf03b14622e93ea4f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ce02c4d977692b73ca58869344d29ad"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a4ce02c4d977692b73ca58869344d29ad">FontPreview</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *out, <a class="el" href="struct__font.html">_font</a> *<a class="el" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>, int num)</td></tr>
<tr class="memdesc:a4ce02c4d977692b73ca58869344d29ad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write Font Preview bit bounding box in ASCII character comments.  <a href="#a4ce02c4d977692b73ca58869344d29ad">More...</a><br /></td></tr>
<tr class="separator:a4ce02c4d977692b73ca58869344d29ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad503e80d2656e563b9d6112ea11ef820"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#ad503e80d2656e563b9d6112ea11ef820">FontPreviewFull</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *out, <a class="el" href="struct__font.html">_font</a> *<a class="el" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>, int num)</td></tr>
<tr class="memdesc:ad503e80d2656e563b9d6112ea11ef820"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write Font Preview as full format in ASCII character comments.  <a href="#ad503e80d2656e563b9d6112ea11ef820">More...</a><br /></td></tr>
<tr class="separator:ad503e80d2656e563b9d6112ea11ef820"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85e25f42936fa2b1eb3489a17c439ed5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a85e25f42936fa2b1eb3489a17c439ed5">FontPreviewProportional</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *out, <a class="el" href="struct__font.html">_font</a> *<a class="el" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>, int num)</td></tr>
<tr class="memdesc:a85e25f42936fa2b1eb3489a17c439ed5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write Font Preview as proportional format in ASCII character comments.  <a href="#a85e25f42936fa2b1eb3489a17c439ed5">More...</a><br /></td></tr>
<tr class="separator:a85e25f42936fa2b1eb3489a17c439ed5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e60e1a05fd459f3af8aa691e06950a7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a6e60e1a05fd459f3af8aa691e06950a7">WriteFontBitsPreview</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *out, <a class="el" href="struct__font.html">_font</a> *<a class="el" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>, int preview)</td></tr>
<tr class="memdesc:a6e60e1a05fd459f3af8aa691e06950a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write all Font characters in a font as ASCII character comments.  <a href="#a6e60e1a05fd459f3af8aa691e06950a7">More...</a><br /></td></tr>
<tr class="separator:a6e60e1a05fd459f3af8aa691e06950a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a8d8135c72831c5d6ca04479c82351b62"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__bdffile.html">_bdffile</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a8d8135c72831c5d6ca04479c82351b62">BDFnames</a> [<a class="el" href="fonts_2font_8h.html#ac108d78d76235e3c7cada0c2e56b7e2d">MAXFONTS</a>]</td></tr>
<tr class="separator:a8d8135c72831c5d6ca04479c82351b62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae75c11efb4dd449e4fcf9f1f78e9414c"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#ae75c11efb4dd449e4fcf9f1f78e9414c">fnames</a> [<a class="el" href="fonts_2font_8h.html#ac108d78d76235e3c7cada0c2e56b7e2d">MAXFONTS</a>]</td></tr>
<tr class="separator:ae75c11efb4dd449e4fcf9f1f78e9414c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96b7a9cca32173b734b924f9064b62e4"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="bdffontutil_8c.html#a96b7a9cca32173b734b924f9064b62e4">EMPTY</a> = &quot;&quot;</td></tr>
<tr class="separator:a96b7a9cca32173b734b924f9064b62e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>BDF to C code converter Copyright &copy; 2015 Mike Gore Displays fonts generated by bdffont2c BDF to C code converter BDF = Glyph Bitmap Distribution Format The code handles fixed, proportional and bounding box format fonts. </p>
<dl class="section see"><dt>See also</dt><dd><a href="http://en.wikipedia.org/wiki/Glyph_Bitmap_Distribution_Format">http://en.wikipedia.org/wiki/Glyph_Bitmap_Distribution_Format</a></dd></dl>
<dl class="section user"><dt>Copyright &copy; 2015 Mike Gore, GPL License</dt><dd></dd></dl>
<dl class="section user"><dt>You are free to use this code under the terms of GPL</dt><dd>please retain a copy of this notice in any code you use it in.</dd></dl>
<p>This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
<p>This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License along with this program. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </p>

<p>Definition in file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a6293de28b724a18693465ec67868d958"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AddFontName </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__font.html">_font</a> *&#160;</td>
          <td class="paramname"><em>font</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Generate the font name for this font This is based on the BDF FAMILY_NAME,WEIGHT_NAME,SLANT keywords. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*font</td><td>Font pointer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00582">582</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>.</p>

</div>
</div>
<a class="anchor" id="a1b1c337030d89f81b06857192e4e0179"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AdjustFontTable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__font.html">_font</a> *&#160;</td>
          <td class="paramname"><em>font</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adjust Font X Y offset, renormalize X Y to 0 0 Also readjust font bounding box. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*font</td><td>Font pointer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l01191">1191</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l01325">FontAdjustSmall()</a>, and <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>.</p>

</div>
</div>
<a class="anchor" id="a972599efcbe9797a7ca0b80e9c3c3707"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void bclrv </td>
          <td>(</td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>bit clear in byte array </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*ptr</td><td>byte array </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">addr</td><td>bit offset to clear </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l01639">1639</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

</div>
</div>
<a class="anchor" id="a57a2a0c60cfe07cf03b14622e93ea4f4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void bitclrxy </td>
          <td>(</td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clear bit in width * height size bit array usng x and y offsets. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*ptr</td><td>byte array </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>bit x offset </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>bit y offset </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>width of bit array </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>height of bit array </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l01726">1726</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l01240">FontAdjustFull()</a>, and <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>.</p>

</div>
</div>
<a class="anchor" id="ac5c6287f7660b7752ffcb2e788e66f49"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void bitsetxy </td>
          <td>(</td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set bit in width * height size bit array usng x and y offsets. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*ptr</td><td>byte array </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>bit x offset </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>bit y offset </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">w</td><td>width of bit array </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">h</td><td>height of bit array </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l01698">1698</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l01240">FontAdjustFull()</a>, <a class="el" href="bdffontutil_8c_source.html#l01325">FontAdjustSmall()</a>, and <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>.</p>

</div>
</div>
<a class="anchor" id="aa5ed287545d9d0d4361d2bd1c6ecc69d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int bittestxy </td>
          <td>(</td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Test bit in width * height size bit array usng x and y offsets. </p>
<p>Test bit in w * h size bit array usng x and y offsets.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*ptr</td><td>byte array </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>bit x offset </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>bit y offset </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">w</td><td>the width of bit array </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">h</td><td>the height of bit array </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if bit is set, 0 if not </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l01670">1670</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l01524">ComputeGapSize()</a>, <a class="el" href="bdffontutil_8c_source.html#l01240">FontAdjustFull()</a>, <a class="el" href="bdffontutil_8c_source.html#l01325">FontAdjustSmall()</a>, <a class="el" href="bdffontutil_8c_source.html#l01753">FontPreview()</a>, <a class="el" href="bdffontutil_8c_source.html#l01836">FontPreviewFull()</a>, and <a class="el" href="bdffontutil_8c_source.html#l01938">FontPreviewProportional()</a>.</p>

</div>
</div>
<a class="anchor" id="acaa9ad09e11f90b8cf7a9e37963e4690"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void bsetv </td>
          <td>(</td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>bit set in byte array </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*ptr</td><td>byte array </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">addr</td><td>bit offset to clear </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l01625">1625</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

</div>
</div>
<a class="anchor" id="aa30626c7589748b8cea5fee93e17c4cf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int btestv </td>
          <td>(</td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Test bit in byte array. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*ptr</td><td>byte array </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">addr</td><td>bit offset to clear </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if bit is set, 0 if not </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l01653">1653</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

</div>
</div>
<a class="anchor" id="a5452adc13af52bed8d199861362037e0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ComputeGapSize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__font.html">_font</a> *&#160;</td>
          <td class="paramname"><em>font</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Find a good gap size (inter-character spacing) for any font Currently we searching for the smallest width feature in a font set and use it as the gap Set update font-&gt;gap FIXME Alternatively we may wish to consider scanning characters only in their middle (virtically) center. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*font</td><td>Font pointer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l01524">1524</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffont2c_8c_source.html#l00091">main()</a>, and <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>.</p>

</div>
</div>
<a class="anchor" id="a9461259743229256336c4260de7e0e0e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Convert_Font2c </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__font.html">_font</a> *&#160;</td>
          <td class="paramname"><em>font</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert font to C structure Writes header information, font specification, font bitmap. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*out</td><td>File handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*font</td><td>Font handle </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00365">365</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffont2c_8c_source.html#l00091">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a772bc2ec9bca317fb84673f5e9fab1d3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* db_calloc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a>&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>calloc memory or error exit </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>memory size to calloc </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void * pointer </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00062">62</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l01240">FontAdjustFull()</a>, <a class="el" href="bdffontutil_8c_source.html#l01325">FontAdjustSmall()</a>, <a class="el" href="bdffontutil_8c_source.html#l00512">InitFonts()</a>, <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>, and <a class="el" href="bdffontutil_8c_source.html#l00093">stralloc()</a>.</p>

</div>
</div>
<a class="anchor" id="a6042d0098b72b215bcef2d21e803e51d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* db_free </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>free memory </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*p</td><td>memory pointer to free </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void * pointer </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00078">78</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l01240">FontAdjustFull()</a>, <a class="el" href="bdffontutil_8c_source.html#l01325">FontAdjustSmall()</a>, and <a class="el" href="bdffontutil_8c_source.html#l00554">FreeFont()</a>.</p>

</div>
</div>
<a class="anchor" id="a083894d36a7a6960e30d21d88a0da874"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void emit_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write Font Structure element as a uint8_t value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*out</td><td>File handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*name</td><td>structure name </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*data</td><td>data </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>size of data to write </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00457">457</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

</div>
</div>
<a class="anchor" id="a052882497beff245c47eafa6b988f2c0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void emit_number </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write Font Structure element as a number. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*out</td><td>File output handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*name</td><td>number structure name </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">num</td><td>number to display </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00442">442</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00365">Convert_Font2c()</a>.</p>

</div>
</div>
<a class="anchor" id="adcb08a26399fd69fe0d607897367e4af"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void emit_str </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write Font Structure string. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*out</td><td>File handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*name</td><td>structure name </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*data</td><td>string </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00478">478</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00654">WriteFontInfo()</a>.</p>

</div>
</div>
<a class="anchor" id="aa01d93b9cf1d60cc4ce0adb717384f96"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int FindFontName </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Search for a font name. </p>
<dl class="section return"><dt>Returns</dt><dd>: index into BDFnames[] </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00611">611</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffont2c_8c_source.html#l00091">main()</a>.</p>

</div>
</div>
<a class="anchor" id="ac2e86eac4bb6e173fbbfae929302e851"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FontAdjustFull </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__font.html">_font</a> *&#160;</td>
          <td class="paramname"><em>font</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adjust font to full size with no offset. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*font</td><td>Font pointer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l01240">1240</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffont2c_8c_source.html#l00091">main()</a>.</p>

</div>
</div>
<a class="anchor" id="ac8e10a9220f9a51589124690c47d099b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FontAdjustSmall </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__font.html">_font</a> *&#160;</td>
          <td class="paramname"><em>font</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Ajust font to use smallest font bounding box for each font Can be used to converting large fixed fonts to more compact form Creates font-&gt;specs if missing. Updates font-&gt;specs with new font size and offsets Can convert fixed to proportional or optimize bounding box to smallest size for space savings. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*font</td><td>Font pointer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l01325">1325</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffont2c_8c_source.html#l00091">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a3f0f4f7839e40a64f7cfd43752d8a602"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FontHeaderInfo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__font.html">_font</a> *&#160;</td>
          <td class="paramname"><em>font</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>prog</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>target</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write Font Header Information Copyright, font family, etc. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*out</td><td>File handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*font</td><td>Font handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*prog</td><td>program name </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*target</td><td>file name comments </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00323">323</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffont2c_8c_source.html#l00091">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a4ce02c4d977692b73ca58869344d29ad"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FontPreview </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__font.html">_font</a> *&#160;</td>
          <td class="paramname"><em>font</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write Font Preview bit bounding box in ASCII character comments. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*out</td><td>File handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*font</td><td>Font pointer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">num</td><td>Font character </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l01753">1753</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l02040">WriteFontBitsPreview()</a>.</p>

</div>
</div>
<a class="anchor" id="ad503e80d2656e563b9d6112ea11ef820"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FontPreviewFull </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__font.html">_font</a> *&#160;</td>
          <td class="paramname"><em>font</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write Font Preview as full format in ASCII character comments. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*out</td><td>File handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*font</td><td>Font pointer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">num</td><td>Font character </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l01836">1836</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l02040">WriteFontBitsPreview()</a>.</p>

</div>
</div>
<a class="anchor" id="a85e25f42936fa2b1eb3489a17c439ed5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FontPreviewProportional </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__font.html">_font</a> *&#160;</td>
          <td class="paramname"><em>font</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write Font Preview as proportional format in ASCII character comments. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*out</td><td>File handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*font</td><td>Font pointer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">num</td><td>Font character </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l01938">1938</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l02040">WriteFontBitsPreview()</a>.</p>

</div>
</div>
<a class="anchor" id="a4afb5289fcab36022951a5d16ea7932f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FreeFont </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__font.html">_font</a> *&#160;</td>
          <td class="paramname"><em>font</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Free font data. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*font</td><td>Font pointer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00554">554</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffont2c_8c_source.html#l00091">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a1e35df70a4e8a3c2b60cc467731636c8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* get_token </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>token</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>max</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get first non space containing string Skip spaces at start of string </p>
<p>return next token</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*str</td><td>string </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*token</td><td>token characters greter then space less then 0x7f </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">max</td><td>maximum length of token </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: string pointer to character after token </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00209">209</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>.</p>

</div>
</div>
<a class="anchor" id="a75b1f39c4e8755dca07fd291e52aaedb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void InitFonts </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__font.html">_font</a> *&#160;</td>
          <td class="paramname"><em>font</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize all font structures to reset states. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*font</td><td>Font pointer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00512">512</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>.</p>

</div>
</div>
<a class="anchor" id="a57e8372dbdb58858e67dfaad363b0ab0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void InitNames </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reset File and Structure names. </p>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00491">491</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

</div>
</div>
<a class="anchor" id="a236d65c81ae4bb3d079e9f2dd971cf04"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ishex </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>is a character hex ASCII character </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">c</td><td>character to test </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: 0 .. 15 or -1 on error </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00247">247</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00262">ishexstr()</a>, and <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>.</p>

</div>
</div>
<a class="anchor" id="aa8842f574a823375421ac5eabc13bf8c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ishexstr </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Does a string only contain hex characters ? </p>
<dl class="section return"><dt>Returns</dt><dd>: 1 if hex , 0 if not </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00262">262</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>.</p>

</div>
</div>
<a class="anchor" id="a466ba4f5e35f1e5ff2791ae4d68d2c7b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void line_wrap </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>max</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Line wrap function ASSUMES we write back into the string (replace space or tab with newlines. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*str</td><td>string to remove quotes from </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">max</td><td>Maximum string length </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00141">141</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

</div>
</div>
<a class="anchor" id="aa8451fa4387dfafd4583f6548533d37b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* match_token </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>pat</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Match next token against pattern. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>string to search </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">pat</td><td>pattern Skips spaces at start of string A token is any string with caracters greter then space less then 0x7f </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: length of match on sucess </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00279">279</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

</div>
</div>
<a class="anchor" id="a49c59fe21a56b90ad6f8bcc5549e3dce"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ReadBdf </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__font.html">_font</a> *&#160;</td>
          <td class="paramname"><em>font</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>lower</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>upper</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read and parse a BDF file for specified font and character set range Fills fonts structures. </p>
<dl class="section see"><dt>See also</dt><dd>: <a href="http://en.wikipedia.org/wiki/Glyph_Bitmap_Distribution_Format">http://en.wikipedia.org/wiki/Glyph_Bitmap_Distribution_Format</a> </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*name</td><td>BDF File name </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*font</td><td>Font pointer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">lower</td><td>First character </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">upper</td><td>Last character </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: number of characters processed </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00790">790</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffont2c_8c_source.html#l00091">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a907e53e4a090147ec953b18f0e1b7915"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* remove_quotes </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>STrip quotes from string and leading spaces. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*str</td><td>string to remove quotes from </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: char * pointer to first non-space character </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00109">109</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>.</p>

</div>
</div>
<a class="anchor" id="a77f36d5136e3d749221b33e3f23c0258"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* skip_spaces </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Skip spaces at start of string. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*str</td><td>string to remove quotes from </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: first non space character </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00193">193</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00209">get_token()</a>.</p>

</div>
</div>
<a class="anchor" id="a8a9b8fa6a56f0303cd8c23fdf290f401"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* stralloc </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Allocate memory and copy string into it. </p>
<p>Allocate space for string.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*str</td><td>string to allocate and copy memory for </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: char * pointer to allocated string </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00093">93</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00582">AddFontName()</a>, and <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>.</p>

</div>
</div>
<a class="anchor" id="a4ad12cb70b50ebf45467f22d22707acc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void trim_tail </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Remove characters less then or equal to space from end of string. </p>
<p>Trim White space and control characters from end of string.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*str</td><td>string to remove quotes from </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00177">177</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>, and <a class="el" href="bdffontutil_8c_source.html#l00109">remove_quotes()</a>.</p>

</div>
</div>
<a class="anchor" id="a7c2cf276db0c747638909191d76925da"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WriteCharacterBits </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__font.html">_font</a> *&#160;</td>
          <td class="paramname"><em>font</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write Font bitmap data for one charactre. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*out</td><td>File handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*font</td><td>Font pointer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">num</td><td>character number </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00721">721</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00631">WriteFontBits()</a>.</p>

</div>
</div>
<a class="anchor" id="ac01ebab75271c42afb96bb8da7db06c2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WriteFontBits </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__font.html">_font</a> *&#160;</td>
          <td class="paramname"><em>font</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write Font bitmap data for all characters in a font. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*out</td><td>File handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*font</td><td>Font pointer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00631">631</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00365">Convert_Font2c()</a>, and <a class="el" href="bdfview_8c_source.html#l00053">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a6e60e1a05fd459f3af8aa691e06950a7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WriteFontBitsPreview </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__font.html">_font</a> *&#160;</td>
          <td class="paramname"><em>font</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>preview</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write all Font characters in a font as ASCII character comments. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*out</td><td>File handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*font</td><td>Font pointer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">preview</td><td>1 bit bounding box, 2 Full size, 3 proportional </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l02040">2040</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffont2c_8c_source.html#l00091">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a82e40b5e56cab7daedbe210542aa1d99"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WriteFontInfo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__font.html">_font</a> *&#160;</td>
          <td class="paramname"><em>font</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write C Header: Font Information Summary. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*out</td><td>File handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*font</td><td>Font pointer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00654">654</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00365">Convert_Font2c()</a>, and <a class="el" href="bdfview_8c_source.html#l00053">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a6e780815dcb0ad1738a3710d10751824"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WriteFontTable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__font.html">_font</a> *&#160;</td>
          <td class="paramname"><em>font</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write Specification Font Table. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*out</td><td>File handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*font</td><td>Font pointer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: void </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00684">684</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00365">Convert_Font2c()</a>, and <a class="el" href="bdfview_8c_source.html#l00053">main()</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="a8d8135c72831c5d6ca04479c82351b62"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct__bdffile.html">_bdffile</a> BDFnames[<a class="el" href="fonts_2font_8h.html#ac108d78d76235e3c7cada0c2e56b7e2d">MAXFONTS</a>]</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>BDF = Glyph Bitmap Distribution Format </p><dl class="section see"><dt>See also</dt><dd><a href="http://en.wikipedia.org/wiki/Glyph_Bitmap_Distribution_Format">http://en.wikipedia.org/wiki/Glyph_Bitmap_Distribution_Format</a> </dd></dl>

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00051">51</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffont2c_8c_source.html#l00091">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a96b7a9cca32173b734b924f9064b62e4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* EMPTY = &quot;&quot;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00055">55</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00078">db_free()</a>, and <a class="el" href="bdffontutil_8c_source.html#l00512">InitFonts()</a>.</p>

</div>
</div>
<a class="anchor" id="ae75c11efb4dd449e4fcf9f1f78e9414c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* fnames[<a class="el" href="fonts_2font_8h.html#ac108d78d76235e3c7cada0c2e56b7e2d">MAXFONTS</a>]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="bdffontutil_8c_source.html#l00053">53</a> of file <a class="el" href="bdffontutil_8c_source.html">bdffontutil.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00491">InitNames()</a>, and <a class="el" href="bdffont2c_8c_source.html#l00091">main()</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
